package cg.cmm.alioss.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author: baibing
 * create time: 2024-12-01 22:30
 * description:
 */
@Configuration
@Getter
public class OssConfig {

    @Value("${aliyun.oss.endpoint}")
    private String endpoint;

    @Value("${aliyun.oss.accessKeyId}")
    private String accessKeyId;

    @Value("${aliyun.oss.accessKeySecret}")
    private String accessKeySecret;

    @Value("${aliyun.oss.publicEndpoint}")
    private String publicEndpoint;

    public OssConfig() {
        // 构造函数可以为空，因为我们不再在这里初始化OSS客户端
    }
}
